import React, { memo } from 'react'
import { useRoutes } from 'react-router-dom'
import routes from '@/router'
import Header from './components/app-header'
import AppFooter from './components/app-footer'



const App = memo(() => {
  return (
    <div>
      {/* 头部使用Header组件引入 */}
      <Header/>
      <div className='conter'>
        {/* 引入router配置 */}
        {useRoutes(routes)}
      </div>
      <AppFooter/>
      
    </div>
  )
})

export default App




